package run.siyuan.config;
 
import org.flowable.spring.SpringProcessEngineConfiguration;
import org.flowable.spring.boot.EngineConfigurationConfigurer;
import org.springframework.context.annotation.Configuration;
 
/**
 * 防止流程图中文乱码
 */
@Configuration
public class FlowableConfig implements EngineConfigurationConfigurer<SpringProcessEngineConfiguration> {
    @Override
    public void configure(SpringProcessEngineConfiguration conn) {
        //设置活动字体名称
        conn.setActivityFontName("宋体");
        //设置标签字体名称
        conn.setLabelFontName("宋体");
        //设置注释字体名称
        conn.setAnnotationFontName("宋体");
    }
}